WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct D

Total Complexity 158
Dependencies 18
Dependents 1
Total lines 1,295
Lines of code 584
Logical lines of code 340
Comment lines 468
Methods 25
Properties 0

Methods 25

Method Rating Maintainability Complexity Lines of code
process_payment()
B
40 18 52
do_credit_card_transaction()
A
42 13 48
handle_multi_payment_methods()
A
43 10 44
maybe_tokenize()
A
52 11 23
validate_credit_card_expiration_date()
A
54 10 19
validate_fields()
A
51 9 24
update_transaction_payment_method()
A
47 8 36
handle_single_payment_method()
A
57 9 15
do_gift_card_transaction()
A
44 7 41
do_add_payment_method_transaction()
A
46 7 39
validate_credit_card_fields()
S
56 7 16
do_transaction()
S
50 6 28
get_order()
S
51 6 24
validate_credit_card_account_number()
S
53 6 22
validate_csc()
S
57 6 17
get_order_for_add_payment_method()
S
45 4 42
add_add_payment_method_customer_data()
S
59 5 13
add_payment_method()
S
54 4 20
create_gift_card()
S
52 3 24
add_add_payment_method_transaction_data()
S
58 3 14
load_gift_card()
S
66 2 8
verify_order_total()
S
70 1 6
get_add_payment_method_payment_gateway_transaction_data()
S
82 1 3
is_direct_gateway()
S
82 1 3
transaction_forced()
S
82 1 3